<?php
/**************************************************
* PluginLotto.com                                 *
* Copyrights (c) 2005-2010. iZAP                  *
* All rights reserved                             *
***************************************************
* @author iZAP Team "<support@izap.in>"
* @link http://www.izap.in/
* @version {version} $Revision: {revision}
* Under this agreement, No one has rights to sell this script further.
* For more information. Contact "Tarun Jangra<tarun@izap.in>"
* For discussion about corresponding plugins, visit http://www.pluginlotto.com/pg/forums/
* Follow us on http://facebook.com/PluginLotto and http://twitter.com/PluginLotto
 */

$poll = $vars['entity'];
$edit_url = func_set_href_byizap( array(
        'plugin' => GLOBAL_IZAP_POLL_PLUGIN,
        'page' => 'edit',
        'vars'=> array( $poll->guid )));
if( $poll->canEdit() ) {
  echo elgg_view('output/confirmlink',array(
  'href' => func_izap_bridge_default_delete_action($poll->guid),
  'text' => elgg_echo('izap_poll:delete'),
  ));
  echo " / ";
  echo '<a href="'.$edit_url.'">'.elgg_echo("izap_poll:edit").'</a><br />';
}